<?php $this->load->module('mobile/index/header', $common);?>

<link rel="stylesheet" href="<?php echo URLPRE;?>static/template/<?php echo MOBILE_TEMPLATE_NAME?>/mobile/css/style1.css?_=22121" type="text/css">
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/main.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/dialog.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/base.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/index.css" />
<link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/line.css" />
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/mobilecommon.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/slider.js"></script>
<script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/dialog.js"></script>


<div class="wrap" >
    <div class="container">
        <div class="jipiaoyuding-city">
            <p><?php echo $car_info['title'],$car_info['brand']?>订单详情</p>
        </div>
        <div class="dingdanxiangqing">
            <p><span>订单编号：</span><?php echo $order_info['order_sn']?></p>
            <p><span>产品：</span><a href="<?php echo site_url('mobile/rent/profile?id='.$car_info['id'])?>"><?php echo $car_info['title'],$car_info['brand']?></a></p>
            <p><span>单价：</span>¥<?php echo $rent_order_info['price']?> <?php if($price_info['price_unit']=='1'):?><small>元/天</small><?php endif;?><?php if($price_info['price_unit']=='2'):?><small>元/次</small><?php endif;?></p>

            <p><span>天数：</span><?php
                $startdate=strtotime($order_info['huanche']);
                $enddate=strtotime($rent_order_info['go_date'] );
                $days=round(($enddate-$startdate)/86400)+1;
                echo $days ?>天</p>

            <p><span>辆数：</span><?php echo str_replace('人','',$order_info['ren'])?></p>
            <p><span>租车时间：</span><?php echo $rent_order_info['go_date']?> 至 <?php echo $order_info['huanche']?></p>
            <?php if($order_info['order_status_name']){?><p><span>订单状态：</span><?php echo $order_info['order_status_name']?></p><?php }?>
            <p><span>支付状态：</span><?php echo $order_info['pay_status_name']?>（到店支付）</p>
            <p><span>下单时间：</span><?php echo $order_info['add_time']?></p>
        </div>
        <div class="linegrey"></div>
        <div class="item-price">
            <div class="pricebtn">
                <p>订单总额：<b>￥<?php echo $order_info['order_account']?></b></p>
                <a href="<?php echo site_url('mobile/pay/index?id=' . $order_info['order_id'])?>"><input type="submit" value="立即支付"></a>
                <input type="button" onclick="window.location.href='<?php echo site_url('mobile/order/rent_list')?>'" value="暂不支付">
            </div>
            <div class="wenxintishi">
                <p>温馨提示：</p>
                <p>  由于酒店预订和租车预订可以提供<span>到店支付</span>功能，<span>酒店</span>和<span>租车</span>的订单
                    <span>在选择暂不支付功能后仍旧拥有订单功能，视同订单生效。</span>
                </p>
            </div>
        </div>
    </div>
</div>


<?php $this->load->module('mobile/index/footer', $common);?>